import React from 'react'
import PropTypes from 'prop-types'
import {connect} from 'dva'
import {Page} from 'components'
import OrderDetail from "components/Order/OrderDetail"

class AllOrderDetail extends React.Component {

  render () {
    const {orderDetail: {orderId}} = this.props

    return (
      <OrderDetail orderId={orderId}/>
    )
  }
}

AllOrderDetail.propTypes = {
  location: PropTypes.object,
  dispatch: PropTypes.func,
  loading: PropTypes.object,
}

export default connect(({orderDetail, loading}) => ({orderDetail, loading}))(AllOrderDetail)
